import urllib2
def get(url):
    content = urllib2.urlopen(url).read()
    return content
print get('http://www.baidu.com')